package com.virtual.repository.test.beans;

import java.io.Serializable;
import java.util.List;

public class Customer implements Serializable {
	private Address address;
	
	private CreditCard creditCard;
	
	private String name;
	
	private int age;
	
	private Integer id;
	
	private List<Phone> phones;
	
	private List<Children> childrens;
	
	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public CreditCard getCreditCard() {
		return creditCard;
	}

	public void setCreditCard(CreditCard creditCard) {
		this.creditCard = creditCard;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public List<Phone> getPhones() {
		return phones;
	}

	public void setPhones(List<Phone> phones) {
		this.phones = phones;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Customer [address=");
		builder.append(address);
		builder.append(", creditCard=");
		builder.append(creditCard);
		builder.append(", name=");
		builder.append(name);
		builder.append(", age=");
		builder.append(age);
		builder.append(", id=");
		builder.append(id);
		builder.append(", phones=");
		builder.append(phones);
		builder.append(", childrens=");
		builder.append(childrens);
		builder.append("]");
		return builder.toString();
	}

	public List<Children> getChildrens() {
		return childrens;
	}

	public void setChildrens(List<Children> childrens) {
		this.childrens = childrens;
	}


}
